projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1021e12
)
macos: fix fps calculation for frame timings
author
Christian Hergert
<chergert@redhat.com>
Fri, 16 Oct 2020 04:04:51 +0000
(21:04 -0700)
committer
Christian Hergert
<chergert@redhat.com>
Fri, 16 Oct 2020 04:04:51 +0000
(21:04 -0700)
We need to mark the timings as complete after adding the
presentation time so that we have a valid FPS for the overlay
widget and/or fishbowl demo.
gdk/macos/gdkmacossurface.c
patch
|
blob
|
history
diff --git
a/gdk/macos/gdkmacossurface.c
b/gdk/macos/gdkmacossurface.c
index ec0fb415608d7e10d7d3f6caf444a42af00a784b..9925407d46d8469af723a5695f1298bdfe522f96 100644
(file)
--- a/
gdk/macos/gdkmacossurface.c
+++ b/
gdk/macos/gdkmacossurface.c
@@
-713,7
+713,10
@@
_gdk_macos_surface_thaw (GdkMacosSurface *self,
timings = gdk_frame_clock_get_timings (frame_clock, self->pending_frame_counter);
if (timings != NULL)
- timings->presentation_time = presentation_time - refresh_interval;
+ {
+ timings->presentation_time = presentation_time - refresh_interval;
+ timings->complete = TRUE;
+ }
self->pending_frame_counter = 0;
}